#include "Armor.h"


Armor::~Armor()
{
}


Armor::Armor(const Armor& a)
{
	itemName = a.getName();
	price = a.getPrice();
	weight = a.getWeight();
	resistance = a.getResistance();
	durability = a.getDurability();
	quality = a.getQuality();
	material = a.getMaterial();
	position = a.getPosition();
}


Armor& Armor::operator=(const Armor& a)
{
	if (this != &a)
	{
		itemName = a.getName();
		price = a.getPrice();
		weight = a.getWeight();
		resistance = a.getResistance();
		durability = a.getDurability();
		quality = a.getQuality();
		material = a.getMaterial();
		position = a.getPosition();
	}
	return *this;
}